#ifndef __TEMP__H__
#define __TEMP__h__
    #include <wiringPi.h>  
    #include <stdlib.h>

    #define MAX_TIMINGS  85  

    class Am2322
    {
    public:
        Am2322(unsigned char _pin);
        int read(void);
        float getTemperature();
        float getHumidity();
    private:

        unsigned char pin;
        int dht11_dat[5] = { 0, 0, 0, 0, 0 };  
        int tem,hum;
        
        int read_dht11_dat();
    };

#endif
